package st.business.tepth.business.businfo;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * @author zhangyu
 * @date 2019/2/27
 */
public class BusPagerAdapter extends FragmentStatePagerAdapter {

    private List<Fragment> mList;
    public BusPagerAdapter(FragmentManager fm) {
        super(fm);
    }
    public BusPagerAdapter(FragmentManager fm, List<Fragment> list) {
        this(fm);
        mList = list;
    }

    @Override
    public Fragment getItem(int i) {
        return mList.get(i);
    }

    @Override
    public int getCount() {
        return mList.size();
    }
}
